package thread;

public class ThreadInfoDemo {
    public static void main(String[] args) {
        Thread main=Thread.currentThread();
        String name=main.getName();
        System.out.println(main.isDaemon());//是否为守护线程
        main.isInterrupted();//是否中断了
    }
}
